package com.bajie.bjlisten.mapper;


import com.bajie.bjlisten.entity.BjDeviceMessage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 消息列表持久层
 */
@Mapper
@Repository
public interface BjDeviceMessageMapper {

    //保存
    int save(BjDeviceMessage bjDeviceMessage);

    //更新
    int update(BjDeviceMessage bjDeviceMessage);

    //根据用户查询
    BjDeviceMessage findAllByUserId(String userId);
}
